{extend name="common@base/common" /}

{block name="style"}
<link href="__SWIPER__/css/swiper.min.css" rel="stylesheet" type="text/css" />
<link href="__CSS__/articles.min.css" rel="stylesheet" type="text/css"/>
{/block}
{block name="body"}
<div id="main-container" class="container">
        <div class="row">
            <div class="col-md-8">
                <div class="common_block_border detail_box">
                    <div class="common_block_title">
                        <div class="title"><h2>{$info.title}</h2></div>
                        <div class="info">
                            <span class="category"><a href="{:Url('category',['id'=>$info.category.id])}">{$info.category.title}</a></span>
                            <span>发表于 {$info.create_time|date='Y-m-d H:i',###}</span>
                        </div>
                        
                        {if condition="check_auth('articles/User/edit',$info['uid'])&&($info['status'] neq 1)"}
                        <p class="clearfix">
                            <a title="编辑" href="{:Url('articles/user/edit',array('id'=>$info['id']))}" class="btn btn-warning">
                                <i class="icon-edit" style="font-size: 16px;">编辑</i>
                            </a>
                        </p>
                        {/if}
                        
                        <div class="clearfix" style="color: #999;font-size: 14px;">{$info.description}</div>
                        
                        {notempty name="$info.keywords"}
                        <div class="keywords-box">
                            <span>关键字</span>
                            {volist name="$info.keywords" id="vo" key="k"}
                                <span class="keywords">{$vo}</span> 
                            {/volist}
                        </div>
                        {/notempty}
                    </div>
                    <hr/>
                    <section id="contents">
                        <div class="news-content">
                            <article class="content">
                            {$info.detail.content}
                            </article>
                            {if condition="$info['source'] neq ''"}
                            <div style="margin-bottom: 20px;color: #C0C0C0;">
                                <i class="icon-chrome"></i> 来源：{$info.source}
                            </div>
                            {/if}
                            <div class="article_copyright">
                                非特殊说明，本文版权归原作者所有，转载请注明出处 
                            </div>
                        </div>
                    </section>
                    <div style="padding:10px">
                        {:hook('localComment', [
                            'app'=>"articles", 
                            'mod'=>"articles",
                            'row_id'=>$info.id,
                            'url'=>url('articles/index/detail',['id'=>$info.id]),
                            'to_uid'=>$info.uid
                        ])}
                    </div>
                </div>
            </div>
            
            <div class="col-md-4">
                <div class="right_block">
                    <div class="right_block_item">
                        <div class="right_block_title">
                            <h3>作者</h3>
                        </div>
                        <div class="author_info">
                            <div class="col-xs-12">
                                <div class="row">
                                    <div class="col-xs-3">
                                        <img class="img-circle" src="{$author.avatar64}"/>
                                    </div>
                                    <div class="col-xs-9">
                                        <a href="{$author.space_url}">{$author.nickname}</a>
                                        <p class="text-more">{$author.signature}</p>
                                    </div>
                                </div>
                            </div>
                            <div class="">
                                <div class="author_num">
                                    <span class="num">
                                    {$author.articles_count}篇
                                    <br />
                                    文章总数
                                    </span>
                                    <span class="num">
                                    {$author.articles_view}
                                    <br />
                                    总访问次数
                                    </span>
                                </div>
                            </div>
                            <div class="clearfix"></div>
                        </div>
                    </div>
                </div>

                <div class="right_block">
                    <div class="right_block_item">
                        <div class="right_block_title">
                            <h3>最新更新</h3>
                        </div>
                        {:widget('News/lists',['map'=>['status'=>1,'uid'=>$info['uid']],'limit'=>3])}
                        <section class="">
                            <a rel="nofollow" class="btn btn-lg btn-info btn-block btn-articles" href="{:Url('author',['uid'=>$info['uid']])}" target="_blank">阅读更多内容，狠戳这里</a>
                        </section>
                    </div>

                </div>
                
            </div>
        </div>
    </div>
{/block}